<template>
  <div class="con">
      <van-card
        v-for="item in list"
        :key="item.id"
        :title="item.goodsname"
        :thumb="$pre + item.img"
        @click="$router.push(`/detail?id=${item.id}`)"
      >
        <div slot="price">{{ item.price | priceFilter }}</div>
      </van-card>

      <van-empty v-if="list.length == 0" description="暂无数据" />
    </div>
</template>

<script>
export default {
    props:['list'],
}
</script>

<style scoped>
.van-multi-ellipsis--l2 {
  line-height: 1em;
}
</style>>